﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace WebApiUseWebservice.Controllers
{
    public class WebApiController : ApiController
    {
        [HttpPost]
        public string Login()
        {
            InnerService.LoginWebServiceSoapClient service = new InnerService.LoginWebServiceSoapClient();
            return service.Login1("test");
        }

        [HttpGet]
        public InnerService.ReturnBase LoginX()
        {
            InnerService.LoginWebServiceSoapClient service = new InnerService.LoginWebServiceSoapClient();
            return service.Login2("admin", "admin", null);

        }
    }
}
